function [ q ] = Q( y1,y2,x,i,seg,tags,g )
    tagnums = ['0' '1'];
    q = ll_feat_func(tagnums(y1),tagnums(y2),x,i,seg,tags)*M(y1,y2,i,g);

end

function [ m ] = M( y_, y, i, g )
    m = exp(g(y_,y,i));
end